Fall back to "fixed" if we can't get a native font in the right encoding.
authorRobert Brady <robert@suse.co.uk>
Mon, 13 Nov 2000 02:20:52 +0000 (02:20 +0000)
committerRobert Brady <rbrady@src.gnome.org>
Mon, 13 Nov 2000 02:20:52 +0000 (02:20 +0000)
Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>

* gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
can't get a native font in the right encoding.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkstyle.c

index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 3de1b7cc00082a8e82b0ebb130cf20fc23abe168..06a49220fc9dfc7ab49070d8a82dea5931c817ae 100644 (file)
@@ -1,8 +1,13 @@
+Mon Nov 13 02:16:33 2000  Robert Brady  <robert@suse.co.uk>
+
+       * gtk/gtkstyle.c (gtk_style_init): Fall back to "fixed" if we
+       can't get a native font in the right encoding.
+
 Mon Nov 13 00:09:29 2000  Robert Brady  <robert@suse.co.uk>
 
        * configure.in: Chinese .pos have been renamed to zh_CN and zh_TW
        respectively.
-       
+
 Sun Nov 12 19:11:42 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_next_line):
index 69e9f681c0947bd7ec5a76b8b033a43a0b05b8bf..bbc760f9be76094bb192e16a017d0644fbfc1cc3 100644 (file)
@@ -376,8 +376,11 @@ gtk_style_init (GtkStyle *style)
     {
       default_font = gdk_font_from_description (style->font_desc);
 
-      if (!default_font)
-       g_error ("Unable to load default font.");
+      if (!default_font) 
+       default_font = gdk_font_load ("fixed");
+
+      if (!default_font) 
+       g_error ("Unable to load \"fixed\" font!");
     }
   
   style->font = default_font;